package com.qixin.part.controller;


import com.qixin.api.service.PtMenuResourseService;
import com.qixin.api.bean.ZtreeBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 * 菜单资源表 前端控制器
 * </p>
 *
 * @author 吕正睿
 * @since 2018-11-13
 */
@Controller
@RequestMapping("/ptMenuResourse")
public class PtMenuResourseController {

@Autowired
	PtMenuResourseService ptMenuResourseService;

	//查询所有角色  如果带分页参数 就分页  如果不带分页参数  就不分页
	@RequestMapping("/findMenuZtree")
	@ResponseBody
	public List<ZtreeBean> findRole(){
		return  ptMenuResourseService.findMenuZtree();
	}
	
}
